export const itemForm = [
	{id: 'spuNo', name: '物料代码'},
	{id: 'apuName', name: '物料名称'},
	{id: 'planQnty', name: '计划数量'},
	{id: 'actlQnty', name: '实际数量'},
	{id: 'taskType', name: '任务类型'},
	{id: 'originPosition', name: '起始位置'},
	{id: 'targetPosition', name: '目标位置'},
	{id: 'originContNo', name: '来源托盘'},
	{id: 'targetContNo', name: '目标托盘'},
	{id: 'taskId', name: '任务ID'},
]

export const rules = {
	// 对name字段进行必填验证
	contNo: {
		// name 字段的校验规则
		rules:[
			// 校验 name 不能为空
			{
				required: true,
				errorMessage: '请输入托盘条码',
			},
		],
		validateTrigger:'submit'
	},
	pickQnty: {
		rules:[
			{
				required: true,
				errorMessage: '请填写拣选数量',
			},
			{
				minLength: 0,
				maxLength: 7,
				errorMessage: '请输入有效的拣选数量(1-9999999)',
			}
		],
		validateTrigger:'submit'
	}
}